package com.bw.zzy.partal2.db.dao;


import com.bw.zzy.partal2.pojo.Doctor;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

@Mapper
public interface DoctorDao {
    public ArrayList<HashMap> selectConditionByPage(Map param);

    public long selectConditionByPageCount(Map param);

    public HashMap selectDoctorDetailById(int id);

    @Transactional
    public void insert(Doctor doctor);

    public Integer selectIdByUUID(String uuid);

    public void updatePicture(Map map);

    public HashMap selectById(int id);

    public void update(Map map);

    public void deleteDoctorById(Integer[] ids);

    public ArrayList<HashMap> selectDoctorBySubId(int subId);
}
